home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Add-On
/
Workbench Add-On - Volume 1.iso
/
BBS-Archive
/
Dev
/
ace23.lha
/
PRGS.lha
/
ExternFunc
/
func.b
next >
Wrap
Text File
|
1994-07-31
|
299b
|
19 lines
{*
** A test of external function use.
** sub.c (compiled and assembled to produce sub.o)
** is used in conjunction with this:
**
** bas -O func sub.o
*}
deflng x,y,z
declare function subtract(x&,y&,z&) external
input "enter x: ",x
input "enter y: ",y
z=0
subtract(x,y,@z)
print x;"-";y;"=";z